package com.me.modules.sys.service.impl;

import com.me.modules.sys.dao.OperationGroupDao;
import com.me.modules.sys.service.OperationGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date : 2018/12/19 14:20
 * @Author : zhenglei
 * @Desc : 业务系统_组
 */
@Service("operationGroupService")
public class OperationGroupServiceImpl implements OperationGroupService {

    @Autowired
    private OperationGroupDao operationGroupDao;

    @Override
    public int saveGroupRelateOperation(Map<String, Object> map) {
        return operationGroupDao.saveGroupRelateOperation(map);
    }

    @Override
    public int saveOperationRelateGroup(Map<String, Object> map) {
        return operationGroupDao.saveOperationRelateGroup(map);
    }

    @Override
    public List<Integer> queryOperationIdListByGroupId(Integer groupId) {
        return operationGroupDao.queryOperationIdListByGroupId(groupId);
    }

    @Override
    public List<Integer> queryGroupIdListByOperationId(Integer operationId) {
        return operationGroupDao.queryGroupIdListByOperationId(operationId);
    }

    @Override
    public int deleteGroupIdByOperationId(Integer operationId) {
        return operationGroupDao.deleteGroupIdByOperationId(operationId);
    }

    @Override
    public int deleteOperationIdByGroupId(Integer groupId) {
        return operationGroupDao.deleteOperationIdByGroupId(groupId);
    }
}
